import {getRequest, postRequest, putRequest} from "@/api/request";

export const doGetAllRoomType = ()=>getRequest('/roomType/getAllRoomType',{})

export const doGetRoomType=(condition)=>postRequest('/roomType/getRoomType',condition);

export const doUpdateRoomTypeStatus = (id) => getRequest('/roomType/updateRoomTypeStatus',{id})

export const doDeleteRoomType = (id) => getRequest('/roomType/deleteRoomType',{id})

export const doAddRoomType = (roomType) =>postRequest('/roomType/addRoomType',roomType);

export const doUpdateRoomType = (roomType)=>putRequest('/roomType/updateRoomType',roomType);

export const doGetAllUnitType =()=>getRequest('/roomType/getAllUnitType',{});